<?php

namespace App\Console\Commands\Tasks;
use Illuminate\Console\Command;
use App\Http\Controllers\Common\TaskController;

class CpapplyExpireCheckCommand extends Command
{
    //命令名
    protected $signature = 'task:cpapplyExpireCheck';

    //命令描述：每分钟检查CP申请过期情况
    protected $description = 'CpapplyExpireCheck';

    public function __construct()
    {
        parent::__construct();
    }

    //业务处理
    public function handle()
    {
        $task = new TaskController();
        //CP申请过期情况
        $task->cpapplyExpireCheck();
    }

}